<div id="thesisOutline" class="panel">
    <div class="panel-body">
         <p>开题报告</p>
         <div class="step1 " ng-if="!data.started">
             <span>论文选题暂未通过</span>
         </div>
         <div ng-if="data.started">
            <div class="step3 " ng-if="data.thesis_state==0||data.thesis_state==2||data.thesis_state==1">
                <div class="top" ng-if="data.thesis_state!=2">
                    <ul>
                        <li>已上传大纲文件：{{data.thesis.fileName}}</li>
                        <li>大纲描述：{{data.thesis.note}}</li>
                        <li>审核状态：
                            <span class="text-success" ng-if="data.thesis.thesisState==1">已通过</span>
                            <span class="text-primary" ng-if="data.thesis.thesisState==0">审核中</span>
                            <span class="text-danger" ng-if="data.thesis.thesisState==2">未通过</span>
                        </li>
                    </ul>
                </div>
                <div class="bottom">
                    <div class="result" ng-repeat="thesis in data.thesises">
                        <span>{{thesis.createTime}}</span>
                        <ul>
                            <li>上传大纲文件：{{thesis.fileName}}</li>
                            <li>审核状态：
                                <span class="text-success" ng-if="thesis.thesisState==1">已通过</span>
                                <span class="text-primary" ng-if="thesis.thesisState==0">审核中</span>
                                <span class="text-danger" ng-if="thesis.thesisState==2">未通过</span>
                            </li>
                            <li>导师建议：{{thesis.teachReply}}</li>
                        </ul>
                    </div>
                    <!--<div class="result">
                        <span>2017-03-16</span>
                        <ul>
                            <li>论题：《论会计学发展》</li>
                            <li>审核状态：<span class="text-success">已通过</span><span class="text-primary">审核中</span><span class="text-danger">未通过</span></li>
                            <li>导师建议：</li>
                        </ul>
                    </div>    -->
                </div>
            </div>
            <div class="step2 " ng-if="data.thesis_state==-1||data.thesis_state==2">
                <form name="outlineSelect" novalidate ng-submit="postForm()">
                    <div class="form-group clearfix" style="position:relative">
                        <div class="input-group pull-left">
                            <input type="button" class="btn form-control" name="" value="添加文件" ng-click="selectFile($event)">
                            <input type="file" class="hidden" name="file_data" accept=".doc,.docx" onchange="angular.element(this).scope().fileNameChanged(this)" >
                            <span class="input-group-addon" ng-click="selectFile($event)">+</span>
                            <input type="hidden" name="fileName" value="{{fileName}}">
                        </div> 
                        <div class="fileName pull-left" style="width:30%">{{fileName}}</div>
                        <!--<input type="file" id="outlineUpload" ng-model="files"  
                        onchange="angular.element(this).scope().fileNameChanged(this)" >-->
                        <!--(仅支持.doc或者.docx格式文件)-->
                    </div>
                    <div class="form-group">
                        <textarea class=" form-control" name="note" rows="5" placeholder="非必填项，可输入相关内容进行描述"></textarea>
                    </div>
                    
                    <div class="form-group">
                        <button type="submit" class="btn">确认上传</button>
                    </div>
                </form>
                
            </div>
        </div>
    </div>
</div>